package com.gupao.javavip.spring.annotation;

import com.gupao.javavip.spring.logger.persistence.LoggerPersistenceType;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author King
 * @Classname EnableLoggerPersistence
 * @Description
 * @Date 2020/5/7 10:00
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
//@Import(LoggerPersistenceSelector.class
@Import(LoggerPersistenceImportBeanDefinitionRegistrar.class)
public @interface EnableLoggerPersistence {
    LoggerPersistenceType type() default LoggerPersistenceType.FILE;
}
